package com.ming.transaction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈仕健
 * @since 2023-04-27
 */

@Data
@TableName("tt_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String nickname;

    @ApiModelProperty("用户账号")
    private String number;

    @ApiModelProperty("用户电话")
    private String phone;

    @ApiModelProperty("密码")
    @JsonIgnore
    private String password;

    @ApiModelProperty("用户地址")
    private String address;

    @ApiModelProperty("用户头像")
    private String icon;

    @ApiModelProperty("创建时间")
    private LocalDateTime createtime;

    @ApiModelProperty("用户角色")
    private String role;


}
